{{include file='header.htm' title='上传照片'}}
<style type="text/css">
@import url(css/upload.css);
</style>
		<script language="JavaScript" type="text/javascript">
$(document).ready(function(){
	$('#albumop_creatalbum').click(function(){
		$("#uploadalbumname").css("display","block");
		$("#uploadalbumid").css("display","none");
		});
	$('#albumop_selectalbum').click(function(){
		$('#uploadalbumname').empty();
		$("#uploadalbumid").css("display","block");
		$("#uploadalbumname").css("display","none");
		});
$('.multi-pt').MultiFile({
  accept:'gif|jpg', max:3, STRING: {
   remove:'删除',
   selected:'Selecionado: $file',
   denied:'只能上传jpg,gif后辍文件 $ext',
   duplicate:'该文件已选:\n$file!'
  }
 });
$('#uploadalbumname').change(function(){
	albumname = $('#uploadalbumname').val();
	if(albumname.length >16)
	{
		alert('相册名过长');
	}
	});
});
		</script>
<div id="content">
	<div id="heading">
		<h1>上传照片</h1>
		<div class="clear"></div>
	</div>

	<div class="clear"></div>
	
	<div class="Help">
		<a title="如何上传照片" href="#">如何上传照片</a>		
	</div>

	<div id="rightWrapper">
		<div id="container">
<div id="main">
	<div id="uploadr">

		<div class="note">从电脑中选择你要上传的图片，最多可以选择三个图片批量上传</div>
		<form id="uploadForm" action="index.php?m=photo&a=upload" method="post" enctype="multipart/form-data">
			<dl id="upload_one_by_one">
				<dt>从您的电脑上选择照片:</dt>
				<dd id="file_selects">
					<div id="selects">
						<p>	<input type="file" class="multi-pt" name="photo[]" value="" /></p>
					</div>
				</dd>
			</dl>
			<dl id="sending_to_album">
				<dt><label for="send_to_album">发送到相册 (可选)</label></dt>	
				<dd>
<input type="radio" id="albumop_selectalbum" name="albumop" value="selectalbum" checked> <label for="albumop_selectalbum">添加到现有相册</label> &nbsp;
<input type="radio" id="albumop_creatalbum" name="albumop" value="creatalbum"> <label for="albumop_creatalbum">新建一个相册</label>
<p><select name="albumid" id="uploadalbumid">
	{{section name=alist loop=$albumlist }}
	{{if $getalbumid == $albumlist[alist].album_id }}
<option selected value="{{$albumlist[alist].album_id}}">{{$albumlist[alist].albumname}}</option>
{{else}}
<option value="{{$albumlist[alist].album_id}}">{{$albumlist[alist].albumname}}</option>
{{/if}}
{{/section}}
</select>
</p>
<p>
	<input type="text" class="t_input" size="20" id="uploadalbumname" name="albumname" value="" style="display:none;">
</p>
			</dd>
			</dl>	
	  		<dl>
				<dt>&nbsp;</dt>
				<dd class="submit">
					<input type="hidden" name="submitted" value="true">
					<input id="uploadbutton" type="submit" value="上传照片" class="Btn" />
					<p>或者，<a href="index.php?m=user&a=usercenter">返回您的主页</a></p>
				</dd>
			</dl>
		</form>
	</div>
</div>

<div id="sidebar">
	<div id="uploadTip" class="inner">
		<p>您已经使用了{{$usedsize}}M占总空间的</p>
		<p id="flowpercent"><span id="percentage">{{$percentage}}</span>%<span id="used_amount" class="Hint">({{$max_size}}M)</span></p>
	</div>
	<h5>小提示：</h5>

	<ul class="Hint Tip">
		<li>支持.jpg .png .gif格式</li>
		<li>免费用户单张照片最大1M</li>
	</ul>

	<h5>Adsense:</h5>
	<div class="inner">
		<ul>
			<li><a href="#">test</a></li>
			<li><a href="#">test</a></li>
			<li><a href="#">test</a></li>
			<li><a href="#" target="_blank">test</a></li>
		</ul>
		<div class="clear"></div>
	</div>
	<br/>
</div>
		</div>
		<div class="clear"></div>
	</div>
</div>
{{include file='footer.htm'}}